package com.yonyou.pmclouds.project.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.project.entity.ProjectBillStatisticsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProjectStatisticsMapper extends BaseMapper<ProjectBillStatisticsVO> {
    ProjectBillStatisticsVO[] queryByProject(String projectId);

    void increaseBillCount(@Param("num") int num, @Param("projectId") String projectId, @Param("billType") String billType);

    void decreaseBillCount(@Param("num") int num, @Param("projectId") String projectId, @Param("billType") String billType);

    //验证数据库是否存在该类型
    ProjectBillStatisticsVO selectStatistics(@Param("projectId") String projectId,@Param("billType")String billType);
    //获取租户
    String[] selectTenant(@Param("projectId")String projectId);

}
